eval: guard authenticated live-daemon registry recovery - #55
Open
schickling-assistant wants to merge 6 commits into
Open
Conversation
agent-session-id: a078daee-6f98-4916-91a8-d21291407789 agent-tool: Codex CLI agent-tool-version: 0.145.0 agent-model: unknown agent-runtime-profile: /nix/store/mnx8agbdq3wiyb6vz63lhgscgazkrn98-coding-agent-runtime-profile/share/coding-agents/profile.json agent-skills-manifest: /nix/store/5r69m9k2llmri3na81518zx0a7y0d3cn-agent-skills-corpus/share/agent-skills/manifest.json tooling-profile: dotfiles@0fb7e03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #54.
Paired implementation: compoundingtech/pty#128, the selected issue #126 protocol, now merged.
Summary
Rewrites the deterministic, model-free
pty-live-recoverycell for PTY PR #128’s authenticated snapshot/revision contract. This is a held-out protocol rewrite, not a metadata-only retarget of the incompatible, superseded PR #127 oracle.The cell uses only eval-owned synthetic PTY roots and providers. It proves:
pty recover <name> --snapshot <metadata.json>as the explicit surface;session_start;.recoverypermission downgrades before request/result, lock, socket, PID, or metadata publication;Exact dependency
PTY PR #128 final reviewed head
9ad3a4368027d8a9e78a22319615a3ab837347e1was squash-merged as exact source9eb958c5aae026d5c05690ab72b528662c55708d.The squash landed on newer PTY main, so the lockfile and launcher remain identical while the compiled CLI/server digests correctly incorporate intervening merged work. Local exact-merged-source build provenance:
43189b5b5b1d560be4b9102d2ed0793d89b9b01dbb3bbd976948f10c6669118d3c3d655b713a6e1a40309eb1b45bb75a023e87dc6391f7dbaa54cefc3efb49ab46285f9cb0212751ccc8344ba821038643c589c1b31a62cfd4354a5b56d2c5c3f7ec154a8f968077c19a3affb5c08bed101fc045fa53cce64178f5512c30711bThis is exact merged-source evidence, not a published PTY release artifact.
Review-red closure
The predecessor cleanup could ignore a daemon termination timeout and prove only that registry roots were removed. Cleanup now binds every captured PID to its Linux process-start token, sends bounded TERM, uses bounded KILL only while that exact captured identity remains alive, and fails if any tracked identity survives. A TERM-resistant synthetic sentinel forces the KILL path on every green run. The judge requires the receipt’s
allTrackedDaemonsDeadfact, a positive captured-daemon count, and a positive fallback count in addition to root removal.Validation
At exact eval head
c595716794de7d027b9e0215ca0d34ae573a5981, after normal follow-up commits only:0 PASS / 8 FAIL / 8 gating judgespty-live-recovery:11 PASS / 0 FAIL / 11 gating judges9e1c4005c0236e82deaee8b421cce8edf314d5f652d6830708fbd9d73ca0c1170fed14bb5653b67e1d64f1199e240c4c5c612bf7, binary SHA256d61d12b2b1189a391c196ca28f8f4ba69072d14fcbad2571fc29db1f250f4eedNo production recovery, provider call, merge of this PR, or deployment was performed.